package com.jsu.user.controller.v1;

import com.jsu.user.service.impl.PointDetailServiceImpl;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.example.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/user/web/v1/pointdetail")
@Api(tags = "用户积分明细控制器")
public class WebPointDetailController {
    @Autowired
    private PointDetailServiceImpl pointDetailService;

    @ApiOperation(value = "获取用户积分明细")
    @GetMapping("/get")
    public ResponseResult getPointDetail(@RequestHeader("token") String token){
        return pointDetailService.getPointDetail(token);
    }

}
